<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-cloak的用法</title>
    <style>
        [v-cloak] {
            display: none;
        }
    </style>
</head>
<body>
    <!-- v-cloak 解决闪动问题 -->
    <div class="box">
        <div v-cloak>{{name}}</div>
    </div>
    <script type="text/javascript" src="./js/vue.js"></script>
    <script type="text/javascript">
        var xm = new Vue({
            el: '.box',
            data: {
                name: '你好，世界！'
            }
        })

    </script>
</body>

</html>